]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Fix color argument
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Mar 2019 17:26:41 +0000 (18:26 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 12 Mar 2019 01:52:22 +0000 (01:52 +0000)
Clutter.TextureNode takes a Clutter.Color, not a Cogl.Color.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020

js/ui/magnifier.js

index 753151ac9f0801ef44e1beac4bab9345a9ebfc76..546ab1d981b6db6222e0f03980e3ccb7a1c4899a 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
-const { Atspi, Clutter, Cogl, GDesktopEnums,
+const { Atspi, Clutter, GDesktopEnums,
         Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
 const Mainloop = imports.mainloop;
 const Signals = imports.signals;
@@ -65,9 +65,7 @@ var MouseSpriteContent = GObject.registerClass({
         if (!this._texture)
             return;
 
-        let color = new Cogl.Color();
-        color.init_from_4ub(0, 0, 0, 0);
-
+        let color = new Clutter.Color();
         let textureNode = new Clutter.TextureNode(this._texture,
                                                   color,
                                                   Clutter.ScalingFilter.NEAREST,